//
//  MainTabController.m
//  KaraList
//
//  Created by Khang Nguyen on 7/25/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "MainTabController.h"
#import "MainListNavigation.h"
#import "PlaylistNavigation.h"

@interface MainTabController ()

@end

@implementation MainTabController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) 
    {
        MainListNavigation *naviAllSongs = [[MainListNavigation alloc] init];
        PlaylistNavigation *naviPlaylist = [[PlaylistNavigation alloc] init];
        self.tabBarController.viewControllers = [NSArray arrayWithObjects:naviAllSongs, naviPlaylist, nil];
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
